package com.hongxun.design.object_properties;

import android.os.Message;

/**
 * Created by zerdoor_pc on 2016/5/5.
 */
public class MyMessage {
    public static Message getMessage(int what, String obj) {
        Message msg = new Message();
        msg.what = what;
        msg.obj = obj;
        return msg;
    }

    public static Message getMessage(int what, int arg1, int arg2, String obj) {
        Message msg = new Message();
        msg.what = what;
        msg.arg1 = arg1;
        msg.arg2 = arg2;
        msg.obj = obj;
        return msg;
    }

    public static Message getMessage(int what, Object arg1) {
        Message msg = new Message();
        msg.what = what;
        msg.obj = arg1;
        return msg;
    }
}
